package com.wwc.sc.service;

import com.wwc.sc.service.impl.OrderHystrixFallBackServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author WWC
 */
@Component
@FeignClient(value = "SPRING-CLOUD-PROVIDER-HYSTRIX-PAYMENT",fallback = OrderHystrixFallBackServiceImpl.class)
public interface OrderHystrixService {

    @RequestMapping(value = "/payment/hystrix/ok/{id}")
    public String paymentInfo_OK(@PathVariable("id") Integer id);

    @RequestMapping(value = "/payment/hystrix/timeout/{id}")
    public String paymentInfo_TimeOut(@PathVariable("id") Integer id);



}
